<?php
import('@.Model.Where.WhereMachine');
class AccountWhereMachine extends WhereMachine{
    public function &uid($uid){
        if (is_array($uid)){
            $this->set('uid', array('IN', $uid));
        } else{
            $this->set('uid', $uid);
        }
        return $this;
    }
    public function &role($role){
        return $this->set('role', $role);
    }
    public function &name($name){
    //TODO: 空格分割
        return $this->set('name', array('LIKE', "%$name%"));
    }
}
?>